#include <bits/stdc++.h>
#define int long long
using namespace std;
const int N = 1e5; 
int n,a[N + 5],sum,b[N + 5],t;
signed main(){
	freopen ("duel.in","r",stdin);
	freopen ("duel.out","w",stdout);
	cin >> n;
	for (int i = 1;i <= n;i ++) cin >> a[i];
	sort (a + 1,a + 1 + n);
	for (int i = 1;i < n;i ++)
		if (a[i] == a[i + 1]) b[a[i]] ++,t ++;
	sort (b + 1,b + 1 + t);
	cout << b[t] << endl; 
	return 0;
}
